home *** CD-ROM | disk | FTP | other *** search
/ 2,000 Greater & Lesser Mysteries / 2,000 Greater and Lesser Mysteries.iso / computer / security / mys00431.txt < prev    next >
Encoding:
Internet Message Format  |  1994-06-10  |  2.3 KB

  1. From: cert@SEI.CMU.EDU
  2. Subject: Sun security problem: restore
  3. Date: Wed, 26 Jul 89 09:20:48 EDT
  4.  
  5. A security hole has been found in SunOS restore.  This problem affects
  6. SunOS 4.0, 4.0.1, and 4.0.3 systems.  It does not appear in SunOS 3.5.
  7. The problem occurs because restore is setuid to root.  Without going
  8. into details, is sufficient to say that this is a serious hole.  All
  9. SunOS 4.0 installations should install this workaround.  Note that a
  10. user does need to have an existing account to exploit this hole.
  11.  
  12. There are two workarounds that will fix the problem.  The first is
  13. slightly more secure but has some side-effects.  
  14.  
  15. 1) Make restore non-setuid by becoming root and doing a 
  16. chmod 750 /usr/etc/restore
  17.  
  18. This makes restore non-setuid and unreadable and unexecutable by
  19. ordinary users.
  20.  
  21. Making restore non-setuid affects the restore command using a remote
  22. tape drive.  You will no longer be able to run a restore from another
  23. machine as an ordinary user; instead, you'll have be root to do so.
  24. (The reason for this is that the remote tape drive daemon on the
  25. machine with the tape drive expects a request on a TCP privileged
  26. port.  Under SunOS, you can't get a privileged port unless you are
  27. root.  By making restore non-setuid, when you run restore and request
  28. a remote tape drive, restore won't be able to get a privileged port,
  29. so the remote tape drive daemon won't talk to it.)
  30.  
  31. 2) If you do need to have some users run restore from remote tape
  32. drives without being root, you can use the following workaround.
  33.  
  34. cd /usr/etc
  35. chgrp operator restore
  36. chmod 4550 restore
  37.  
  38. This allows the use of restore by some trusted group.  In this case,
  39. we used the group 'operator', but you may substitute any other group
  40. that you trust with access to the tape drive.  Thus, restore is still
  41. setuid and vulnerable, but only to the people in the trusted group.
  42.  
  43. The 4550 makes restore readable and executable by the group you
  44. specified, and unreadable by everyone else.
  45.  
  46. Sun knows about this problem (Sun Bug 1019265) and will put in a more
  47. permanent fix in a future release of SunOS. 
  48.  
  49. J. Paul Holbrook
  50. Computer Emergency Response Team
  51. Internet: <cert@SEI.CMU.EDU>
  52. (412) 268-7090 (24 hour hotline)
  53.  
  54.